var fs = require('fs');
var path = require('path');
var filePath1 = path.join(__dirname,'/from.txt');
var filePath2 = path.join(__dirname,'/to.txt');
var readable = fs.createReadStream(filePath1);
var writeable = fs.createWriteStream(filePath2);
readable.on('data',function(chunk){
    writeable.write(chunk.toString('utf-8').toLocaleUpperCase());
});
